package com.beyondsoft.common.activiti.mapper;

import com.beyondsoft.common.activiti.model.CommentData;
import com.beyondsoft.common.activiti.model.HistoryData;
import com.beyondsoft.common.activiti.model.TaskData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhangyan
 * @version $ Id: WorkflowExtMapper.java, v 0.1 2020/6/22 13:10 zhangyan Exp $
 */
@Mapper
public interface WorkflowExtMapper {

    List<CommentData> queryMessageByProcInstId(@Param("procInstId") String procInstId);

    List<HistoryData> queryHistoryByProcInstId(@Param("procInstId") String procInstId);

    List<TaskData> queryToDoTasks(@Param("assignee") String assignee);

    List<TaskData> queryDoneTasks(@Param("assignee") String assignee);

    List<TaskData> queryUserLaunchTask(@Param("assignee") String assignee);
}
